package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * @description: 套餐状态枚举
 * @Author: hongxiao
 * @date: 2019-01-14 22:14
 */
@Getter
public enum FeeStatusEnum {
    /**
     * 套餐状态
     */
    PAY_USER_INVISIBLE(0,"enum.feeStatus.name.pay_user_invisible"),


    PAY_USER_VISIBLE(1,"enum.feeStatus.name.pay_user_visible"),


    PAY_HOT(2,"enum.feeStatus.name.pay_hot"),
    ;

    /**
     * 套餐支付类型
     */
    private int code;
    /**
     * 套餐支付类型名称
     */
    private String name;

    FeeStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
